



<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#FFF">
  <link rel="apple-touch-icon" sizes="180x180" href="/blog/images/apple-touch-icon.png">

<link rel="icon" type="image/ico" sizes="32x32" href="/blog/images/favicon.ico">
  <meta http-equiv="Cache-Control" content="no-transform">
  <meta http-equiv="Cache-Control" content="no-siteapp">


<link rel="alternate" type="application/rss+xml" title="Endless" href="http://fairy77.gitee.io/rss.xml" />
<link rel="alternate" type="application/atom+xml" title="Endless" href="http://fairy77.gitee.io/atom.xml" />
<link rel="alternate" type="application/json" title="Endless" href="http://fairy77.gitee.io/feed.json" />

<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Mulish:300,300italic,400,400italic,700,700italic%7CFredericka%20the%20Great:300,300italic,400,400italic,700,700italic%7CNoto%20Serif%20JP:300,300italic,400,400italic,700,700italic%7CNoto%20Serif%20SC:300,300italic,400,400italic,700,700italic%7CInconsolata:300,300italic,400,400italic,700,700italic&display=swap&subset=latin,latin-ext">

<link rel="stylesheet" href="/blog/css/app.css?v=0.2.5">

  
  <meta name="keywords" content="Git" />


<link rel="canonical" href="http://fairy77.gitee.io/2020/02/29/git-operation/">



  <title>
Git&Github |
夏季大三角 = Endless</title>
<meta name="generator" content="Hexo 5.4.0"></head>
<body itemscope itemtype="http://schema.org/WebPage">
  <div id="loading">
    <div class="cat">
      <div class="body"></div>
      <div class="head">
        <div class="face"></div>
      </div>
      <div class="foot">
        <div class="tummy-end"></div>
        <div class="bottom"></div>
        <div class="legs left"></div>
        <div class="legs right"></div>
      </div>
      <div class="paw">
        <div class="hands left"></div>
        <div class="hands right"></div>
      </div>
    </div>
  </div>
  <div id="container">
    <header id="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="inner">
        <div id="brand">
          <div class="pjax">
          
  <h1 itemprop="name headline">Git&Github
  </h1>
  
<div class="meta">
  <span class="item" title="创建时间：2020-02-29 16:02:54">
    <span class="icon">
      <i class="ic i-calendar"></i>
    </span>
    <span class="text">发表于</span>
    <time itemprop="dateCreated datePublished" datetime="2020-02-29T16:02:54+08:00">2020-02-29</time>
  </span>
  <span class="item" title="本文字数">
    <span class="icon">
      <i class="ic i-pen"></i>
    </span>
    <span class="text">本文字数</span>
    <span>2.8k</span>
    <span class="text">字</span>
  </span>
  <span class="item" title="阅读时长">
    <span class="icon">
      <i class="ic i-clock"></i>
    </span>
    <span class="text">阅读时长</span>
    <span>3 分钟</span>
  </span>
</div>


          </div>
        </div>
        <nav id="nav">
  <div class="inner">
    <div class="toggle">
      <div class="lines" aria-label="切换导航栏">
        <span class="line"></span>
        <span class="line"></span>
        <span class="line"></span>
      </div>
    </div>
    <ul class="menu">
      <li class="item title"><a href="/blog/" rel="start">夏季大三角</a></li>
    </ul>
    <ul class="right">
      <li class="item theme">
        <i class="ic i-sun"></i>
      </li>
      <li class="item search">
        <i class="ic i-search"></i>
      </li>
    </ul>
  </div>
</nav>

      </div>
      <div id="imgs" class="pjax">
        <ul>
          <li class="item" data-background-image="https://tva1.sinaimg.cn/large/6833939bly1gicm0n457cj20zk0m8e81.jpg"></li>
          <li class="item" data-background-image="https://tva1.sinaimg.cn/large/6833939bly1gipesrnqv3j20zk0m8ava.jpg"></li>
          <li class="item" data-background-image="https://tva1.sinaimg.cn/large/6833939bly1gipexe4oykj20zk0m87ji.jpg"></li>
          <li class="item" data-background-image="https://tva1.sinaimg.cn/large/6833939bly1giclil3m4ej20zk0m8tn8.jpg"></li>
          <li class="item" data-background-image="https://tva1.sinaimg.cn/large/6833939bly1gipewkhf1zj20zk0m81kx.jpg"></li>
          <li class="item" data-background-image="https://tva1.sinaimg.cn/large/6833939bly1giph4lm9i7j20zk0m84qp.jpg"></li>
        </ul>
      </div>
    </header>
    <div id="waves">
      <svg class="waves" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 24 150 28" preserveAspectRatio="none" shape-rendering="auto">
        <defs>
          <path id="gentle-wave" d="M-160 44c30 0 58-18 88-18s 58 18 88 18 58-18 88-18 58 18 88 18 v44h-352z" />
        </defs>
        <g class="parallax">
          <use xlink:href="#gentle-wave" x="48" y="0" />
          <use xlink:href="#gentle-wave" x="48" y="3" />
          <use xlink:href="#gentle-wave" x="48" y="5" />
          <use xlink:href="#gentle-wave" x="48" y="7" />
        </g>
      </svg>
    </div>
    <main>
      <div class="inner">
        <div id="main" class="pjax">
          
  <div class="article wrap">
    
<div class="breadcrumb" itemscope itemtype="https://schema.org/BreadcrumbList">
<i class="ic i-home"></i>
<span><a href="/blog/">首页</a></span>
</div>

    <article itemscope itemtype="http://schema.org/Article" class="post block" lang="zh-CN">
  <link itemprop="mainEntityOfPage" href="http://fairy77.gitee.io/2020/02/29/git-operation/">

  <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
    <meta itemprop="image" content="/blog/images/avatar.jpg">
    <meta itemprop="name" content="Rain Bear">
    <meta itemprop="description" content=", ">
  </span>

  <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
    <meta itemprop="name" content="Endless">
  </span>

  <div class="body md" itemprop="articleBody">
    

    <p>git 官网：<span class="exturl" data-url="aHR0cHM6Ly9naXQtc2NtLmNvbS8=">https://git-scm.com/</span></p>
<h2 id="1安装"><a class="markdownIt-Anchor" href="#1安装">#</a> 1. 安装</h2>
<p><img data-src="git-operation/%E5%AE%89%E8%A3%851.png" alt=""></p>
<span id="more"></span>
<p><img data-src="git-operation/%E5%AE%89%E8%A3%852.png" alt=""></p>
<p><img data-src="git-operation/%E5%AE%89%E8%A3%853.png" alt=""></p>
<p><img data-src="git-operation/%E5%AE%89%E8%A3%854.png" alt=""></p>
<p><img data-src="git-operation/%E5%AE%89%E8%A3%855.png" alt=""></p>
<p><img data-src="git-operation/%E5%AE%89%E8%A3%856.png" alt=""></p>
<h2 id="2结构"><a class="markdownIt-Anchor" href="#2结构">#</a> 2. 结构</h2>
<ul>
<li>工作区（写代码） git add–&gt; 暂存区（临时存储） git commit–&gt; 本地库（本地存储）</li>
</ul>
<h2 id="3git和代码托管中心"><a class="markdownIt-Anchor" href="#3git和代码托管中心">#</a> 3.Git 和代码托管中心</h2>
<ul>
<li>代码托管中心：维护远程库
<ul>
<li>局域网环境下<br>
 GitLab 服务器</li>
<li>外网环境下<br>
 GitHub 码云</li>
</ul>
</li>
</ul>
<h2 id="4本地库和远程库"><a class="markdownIt-Anchor" href="#4本地库和远程库">#</a> 4. 本地库和远程库</h2>
<p>团队内部协作：<br>
<img data-src="git-operation/%E5%86%85%E9%83%A8%E5%8D%8F%E4%BD%9C.png" alt=""><br>
跨团队协作：<br>
<img data-src="git-operation/%E5%9B%A2%E9%98%9F%E5%8D%8F%E4%BD%9C.png" alt=""></p>
<h2 id="5git命令行操作"><a class="markdownIt-Anchor" href="#5git命令行操作">#</a> 5.Git 命令行操作</h2>
<h3 id="51-本地库初始化"><a class="markdownIt-Anchor" href="#51-本地库初始化">#</a> 5.1 本地库初始化</h3>
<p>Git init<br>
<img data-src="git-operation/gitinit.png" alt=""></p>
<h3 id="52-设置签名"><a class="markdownIt-Anchor" href="#52-设置签名">#</a> 5.2 设置签名</h3>
<ul>
<li>
<p>形式：<br>
用户名：tom<br>
Email: <span class="exturl" data-url="bWFpbHRvOjEyMy5AYXMuY29t">123.@as.com</span>（写不存在的地址也没事）</p>
</li>
<li>
<p>作用：区分不同开发人员的身份（这边的签名和登录远程库【代码托管中心】的账号和密码没有任何关系）</p>
</li>
<li>
<p>命令：</p>
<ul>
<li>
<p>项目级别 / 仓库级别：仅在当前本地库范围内有效<br>
 <code>git config user.name tom</code> <br>
 <code>git config user.email 123@as.com </code> <br>
保存于项目目录下的 .git/config</p>
</li>
<li>
<p>系统用户级别：登录当前操作系统的用户范围<br>
 <code>git config --global user.name tom</code> <br>
 <code>git config --global user.email 123@as.com</code> <br>
 保存于系统用户目录下的 .gitconfig 文件<br>
优先级：项目级别优先于系统级别，都有则采用项目级别</p>
</li>
</ul>
</li>
</ul>
<h3 id="53-查看状态添加提交"><a class="markdownIt-Anchor" href="#53-查看状态添加提交">#</a> 5.3 查看状态，添加提交</h3>
<ul>
<li>命令：
<blockquote>
<p>git status<br>
git add 文件 添加到缓存区<br>
 git rm --cache 文件 从缓存区移除<br>
 git commit -m “xxx” 文件</p>
</blockquote>
</li>
</ul>
<h3 id="54-查看历史记录"><a class="markdownIt-Anchor" href="#54-查看历史记录">#</a> 5.4 查看历史记录</h3>
<ul>
<li>命令：<br>
 <code>git log</code> <br>
<img data-src="git-operation/gitlog.png" alt=""></li>
</ul>
<p>附加参数：<br>
 <code>git log --pretty=oneline</code> <br>
<img data-src="git-operation/gitlog1.png" alt=""><br>
 <code>git log --oneline</code> <br>
<img data-src="git-operation/gitlog2.png" alt=""><br>
 <code>git reflog</code> <br>
<img data-src="git-operation/gitlog3.png" alt=""></p>
<p 移动到当前版本需要的步数="">HEAD@</p>
<h3 id="55-版本前进回退"><a class="markdownIt-Anchor" href="#55-版本前进回退">#</a> 5.5 版本前进回退</h3>
<ul>
<li>
<p>基于索引值操作（推荐）<br>
Git reset --hard [局部索引值]<br>
Git reset --hard 56fcccd</p>
</li>
<li>
<p>使用 ^ 符号：只能往后退<br>
 Git reset --hard HEAD^ 一个 ^ 符号表示后退一步</p>
</li>
<li>
<p>使用～符号<br>
 Git reset --hard HEAD<sub>3（</sub>加数字 n 表示后退 n 步）</p>
</li>
<li>
<p>Reset 3 个参数比较：</p>
<ul>
<li>soft<br>
 仅仅在本地库移动 HEAD 指针</li>
<li>mixed<br>
 在本地库移动 HEAD 指针<br>
重置暂存区</li>
<li>hard<br>
 在本地库移动 HEAD 指针<br>
重置暂存区<br>
重置工作区</li>
</ul>
</li>
</ul>
<h3 id="56-找回删除文件"><a class="markdownIt-Anchor" href="#56-找回删除文件">#</a> 5.6 找回删除文件</h3>
<ul>
<li>怎么删除<br>
 Rm 文件（工作区删除） -&gt; git add 文件（加入暂存区）-&gt; git commit 文件（提交本地库）</li>
<li>找回<br>
已提交本地库，reset 到有文件的版本<br>
未提交本地库，reset 到当前版本，刷新暂存和工作区 git reset --hard HEAD</li>
</ul>
<h3 id="57-文件比较"><a class="markdownIt-Anchor" href="#57-文件比较">#</a> 5.7 文件比较</h3>
<ul>
<li>git diff 文件名<br>
工作区和暂存区比较</li>
<li>git diff [本地库中的历史版本] 文件名（56fcccd 或者 HEAD^）<br>
工作区和本地库比较</li>
<li>不带文件名 比较多个文件</li>
</ul>
<h3 id="58-分支"><a class="markdownIt-Anchor" href="#58-分支">#</a> 5.8 分支</h3>
<ul>
<li>创建分支<br>
 Git branch [分支名]</li>
<li>查看分支<br>
 Git branch -v</li>
<li>切换分支<br>
 Git checkout [分支名]</li>
<li>合并冲突<br>
第一，切换到被合并的分支上 git checkout [被合并的分支名]<br>
 第二，执行 merge 命令 git merge [新内容的分支名]</li>
<li>解决冲突<br>
冲突的表现<br>
<img data-src="git-operation/%E5%88%86%E6%94%AF%E5%86%B2%E7%AA%81.png" alt=""></li>
<li>冲突的解决
<ul>
<li>编辑文件，修改文件</li>
<li>git add [文件名]</li>
<li>git commit （不加文件名)</li>
</ul>
</li>
</ul>
<h2 id="6git的基本原理"><a class="markdownIt-Anchor" href="#6git的基本原理">#</a> 6.Git 的基本原理</h2>
<h3 id="61哈希"><a class="markdownIt-Anchor" href="#61哈希">#</a> 6.1 哈希</h3>
<ul>
<li>哈希是一个系列的加密算法，各个不同的哈希算法虽然加密强度不同，但是有以下几个共同点：<br>
1. 不管输入数据量多大，经过同一个 hash 算法加密，得到的加密结果长度固定<br>
 2. 哈希算法确定，输入数据确定，输出数值能够保证不变<br>
 3. 哈希算法确定，输入数据有变化，输出数据一定有变化，而且通常变化很大<br>
 4. 哈希算法不可逆</li>
<li>Git 底层采用的是 SHA-1 算法。</li>
</ul>
<h3 id="62git保存版本的机制"><a class="markdownIt-Anchor" href="#62git保存版本的机制">#</a> 6.2git 保存版本的机制</h3>
<p>6.2.1 集中式版本控制工具的文件管理机制<br>
<img data-src="git-operation/%E9%9B%86%E4%B8%AD%E5%BC%8F%E6%9C%BA%E5%88%B6.png" alt=""><br>
 6.2.2 git 的文件管理机制<br>
<img data-src="git-operation/git%E6%96%87%E4%BB%B6%E7%AE%A1%E7%90%86%E6%9C%BA%E5%88%B6.png" alt=""><br>
 6.2.3 git 文件管理细节</p>
<ul>
<li>git 的提交对象<br>
<img data-src="git-operation/%E7%BB%86%E8%8A%821.png" alt=""></li>
<li>提交对象及其父对象形成的链条<br>
<img data-src="git-operation/%E7%BB%86%E8%8A%822.png" alt=""></li>
</ul>
<h3 id="63git分支管理机制"><a class="markdownIt-Anchor" href="#63git分支管理机制">#</a> 6.3git 分支管理机制</h3>
<p>6.3.1 分支的创建<br>
<img data-src="git-operation/%E5%88%86%E6%94%AF%E5%88%9B%E5%BB%BA.png" alt=""><br>
 6.3.2 分支的切换<br>
<img data-src="git-operation/%E5%88%86%E6%94%AF%E5%88%87%E6%8D%A21.png" alt=""><br>
<img data-src="git-operation/%E5%88%86%E6%94%AF%E5%88%87%E6%8D%A22.png" alt=""><br>
<img data-src="git-operation/%E5%88%86%E6%94%AF%E5%88%87%E6%8D%A23.png" alt=""><br>
<img data-src="git-operation/%E5%88%86%E6%94%AF%E5%88%87%E6%8D%A24.png" alt=""></p>
<h2 id="7github"><a class="markdownIt-Anchor" href="#7github">#</a> 7.GitHub</h2>
<h3 id="71-创建远程库"><a class="markdownIt-Anchor" href="#71-创建远程库">#</a> 7.1 创建远程库</h3>
<p><img data-src="git-operation/%E5%88%9B%E5%BB%BA%E8%BF%9C%E7%A8%8B%E4%BB%93%E5%BA%93.png" alt=""></p>
<h3 id="72-起别名"><a class="markdownIt-Anchor" href="#72-起别名">#</a> 7.2 起别名</h3>
<p><code>git remote add [别名] [地址]</code> <br>
<img data-src="git-operation/%E5%88%9B%E5%BB%BA%E8%BF%9C%E7%A8%8B%E4%BB%93%E5%BA%93-%E8%B5%B7%E5%88%AB%E5%90%8D.png" alt=""></p>
<h3 id="73-推送操作"><a class="markdownIt-Anchor" href="#73-推送操作">#</a> 7.3 推送操作</h3>
<p><code>git push [远程库别名/地址] [分支]</code> <br>
<img data-src="git-operation/%E5%88%9B%E5%BB%BA%E8%BF%9C%E7%A8%8B%E4%BB%93%E5%BA%93-%E6%8E%A8%E9%80%81.png" alt=""></p>
<h3 id="74-克隆"><a class="markdownIt-Anchor" href="#74-克隆">#</a> 7.4 克隆</h3>
<ul>
<li>完整的吧远程库下载到本地</li>
<li>创建 origin 远程库别名</li>
<li>初始化本地库<br>
 <code>Git clone [地址]</code> <br>
<img data-src="git-operation/%E5%88%9B%E5%BB%BA%E8%BF%9C%E7%A8%8B%E4%BB%93%E5%BA%93-%E5%85%8B%E9%9A%861.png" alt=""><br>
<img data-src="git-operation/%E5%88%9B%E5%BB%BA%E8%BF%9C%E7%A8%8B%E4%BB%93%E5%BA%93-%E5%85%8B%E9%9A%862.png" alt=""></li>
</ul>
<h3 id="75-添加项目成员"><a class="markdownIt-Anchor" href="#75-添加项目成员">#</a> 7.5 添加项目成员</h3>
<p><img data-src="git-operation/%E5%88%9B%E5%BB%BA%E8%BF%9C%E7%A8%8B%E4%BB%93%E5%BA%93-%E6%B7%BB%E5%8A%A0%E6%88%90%E5%91%98.png" alt=""></p>
<h3 id="76-远程库拉取"><a class="markdownIt-Anchor" href="#76-远程库拉取">#</a> 7.6 远程库拉取</h3>
<ul>
<li>先 fetch<br>
<img data-src="git-operation/%E5%88%9B%E5%BB%BA%E8%BF%9C%E7%A8%8B%E4%BB%93%E5%BA%93-fetch.png" alt=""></li>
<li>后 merge<br>
<img data-src="git-operation/%E5%88%9B%E5%BB%BA%E8%BF%9C%E7%A8%8B%E4%BB%93%E5%BA%93-merge.png" alt=""></li>
<li>总结：
<ul>
<li>Pull = fetch + merge</li>
<li>git fetch [远程库地址别名] [远程分支名]</li>
<li>git merge [远程库地址别名 / 远程分支名]</li>
<li>不容易产生冲突的话，可以直接 pull : git pull origin master</li>
</ul>
</li>
</ul>
<h3 id="77-解决冲突"><a class="markdownIt-Anchor" href="#77-解决冲突">#</a> 7.7 解决冲突</h3>
<ul>
<li>要点：<br>
如果不是基于 GitHub 远程库最新版所作的修改，不能推送，必须先拉取。<br>
拉取下来后如果进入冲突状态，则按照 “分支冲突解决” 操作解决即可。</li>
</ul>
<h3 id="78-跨团队协作"><a class="markdownIt-Anchor" href="#78-跨团队协作">#</a> 7.8 跨团队协作</h3>
<ul>
<li>fork<br>
<img data-src="git-operation/%E5%88%9B%E5%BB%BA%E8%BF%9C%E7%A8%8B%E4%BB%93%E5%BA%93-fork.png" alt=""></li>
</ul>
<h3 id="79-ssh登录"><a class="markdownIt-Anchor" href="#79-ssh登录">#</a> 7.9  SSH 登录</h3>
<ul>
<li>进入当前用户目录<br>
 <code>$cd ~</code></li>
<li>删除.ssh 目录<br>
 <code>$rm -rvf .ssh </code></li>
<li>运行命令生成.ssh 密钥目录<br>
 <code>$ssh-keygen -t rsa -C [用户邮箱]</code></li>
<li>进入.ssh 目录查看文件列表</li>
<li>查看 id_rsa.pub 文件内容<br>
 <code>$cat id_rsa.pub</code></li>
<li>复制 id_rsa.pub 文件内容，登录 GitHub，点击用户头像–&gt;settings–&gt;SSH and GPG keys</li>
<li>New SSH Key</li>
<li>输入复制的密钥信息</li>
<li>回到 GitHub 创建远程地址别名<br>
 <code>$git remote add origin_ssh git@github.com:fairy7/huashan.git</code></li>
<li>推送文件进行测试<br>
<img data-src="git-operation/%E5%88%9B%E5%BB%BA%E8%BF%9C%E7%A8%8B%E4%BB%93%E5%BA%93-ssh1.png" alt=""><br>
<img data-src="git-operation/%E5%88%9B%E5%BB%BA%E8%BF%9C%E7%A8%8B%E4%BB%93%E5%BA%93-ssh2.png" alt=""><br>
<img data-src="git-operation/%E5%88%9B%E5%BB%BA%E8%BF%9C%E7%A8%8B%E4%BB%93%E5%BA%93-ssh3.png" alt=""><br>
<img data-src="git-operation/%E5%88%9B%E5%BB%BA%E8%BF%9C%E7%A8%8B%E4%BB%93%E5%BA%93-ssh4.png" alt=""></li>
</ul>
<h2 id="8idea上使用git"><a class="markdownIt-Anchor" href="#8idea上使用git">#</a> 8.Idea 上使用 git</h2>
<ul>
<li>设置 git 路径<br>
<img data-src="git-operation/idea-git.png" alt=""></li>
</ul>
<h3 id="81创建本地库"><a class="markdownIt-Anchor" href="#81创建本地库">#</a> 8.1 创建本地库</h3>
<p><img data-src="git-operation/idea-%E5%88%9B%E5%BB%BA%E6%9C%AC%E5%9C%B0%E5%BA%93.png" alt=""></p>
<h3 id="82-加入ignore插件项目内部加入gitignore文件"><a class="markdownIt-Anchor" href="#82-加入ignore插件项目内部加入gitignore文件">#</a> 8.2 加入.ignore 插件，项目内部加入.gitignore 文件</h3>
<p><img data-src="git-operation/idea-gitignore.png" alt=""></p>
<ul>
<li>注：全局 ignore 方式（路径使用 “/”）<br>
<img data-src="git-operation/idea-gitignore%E5%85%A8%E5%B1%80.png" alt=""></li>
</ul>
<h3 id="83-添加远程库"><a class="markdownIt-Anchor" href="#83-添加远程库">#</a> 8.3 添加远程库</h3>
<p><img data-src="git-operation/idea-%E6%B7%BB%E5%8A%A0%E8%BF%9C%E7%A8%8B%E5%BA%93.png" alt=""></p>
<h2 id="9git工作流"><a class="markdownIt-Anchor" href="#9git工作流">#</a> 9.Git 工作流</h2>
<h3 id="91概念"><a class="markdownIt-Anchor" href="#91概念">#</a> 9.1 概念</h3>
<ul>
<li>在项目开发过程中使用 git 的方式</li>
</ul>
<h3 id="92分类"><a class="markdownIt-Anchor" href="#92分类">#</a> 9.2 分类</h3>
<ul>
<li>集中式工作流<br>
<img data-src="git-operation/%E9%9B%86%E4%B8%AD%E5%BC%8F%E5%B7%A5%E4%BD%9C%E6%B5%81.png" alt=""></li>
<li>GitFlow 工作流（多数）<br>
<img data-src="git-operation/gitFlow%E5%B7%A5%E4%BD%9C%E6%B5%81.png" alt=""></li>
<li>Forking 工作流</li>
</ul>
<h3 id="93-gitflow工作流详解"><a class="markdownIt-Anchor" href="#93-gitflow工作流详解">#</a> 9.3 gitflow 工作流详解</h3>
<ul>
<li>举例<br>
<img data-src="git-operation/gitflow1.png" alt=""></li>
<li>分支实战<br>
<img data-src="git-operation/gitflow2.png" alt=""></li>
</ul>
<h2 id="10gitlab"><a class="markdownIt-Anchor" href="#10gitlab">#</a> 10.GitLab</h2>
<ul>
<li>官网地址：<span class="exturl" data-url="aHR0cHM6Ly9hYm91dC5naXRsYWIuY29tLw==">https://about.gitlab.com/</span></li>
<li>包下载地址：<span class="exturl" data-url="aHR0cHM6Ly9wYWNrYWdlcy5naXRsYWIuY29tL2dpdGxhYi8=">https://packages.gitlab.com/gitlab/</span></li>
</ul>
<h3 id="101下载安装"><a class="markdownIt-Anchor" href="#101下载安装">#</a> 10.1 下载安装</h3>
<ul>
<li><code>rpm -vif gitlab-ce-12.7.2-ce.0.el7.x86_64.rpm</code></li>
<li>然后按照官网给的安装步骤进行：<br>
<img data-src="git-operation/gitlab%E5%AE%89%E8%A3%85.png" alt=""></li>
<li>可以整理成 bash 文件直接运行（安装前可以拍个快照）</li>
<li>走完后 reboot。</li>
</ul>
<h3 id="102gitlab服务操作"><a class="markdownIt-Anchor" href="#102gitlab服务操作">#</a> 10.2GitLab 服务操作</h3>
<ul>
<li>初始化配置 gitlab<br>
 <code>gitlab-ctl reconfigure</code></li>
<li>启动 gitlab 服务<br>
 <code>gitlab-ctl start</code></li>
<li>停止 gitlab 服务<br>
 <code>gitlab-ctl stop</code></li>
</ul>
<h3 id="103浏览器访问"><a class="markdownIt-Anchor" href="#103浏览器访问">#</a> 10.3 浏览器访问</h3>
<ul>
<li>访问 Linux 服务器 IP 地址即可，如果想访问 EXTERNAL_URL 指定的域名还需要配置域名服务器或本地 hosts 文件。</li>
<li>初次登录时需要为 gitlab 的 root 用户设置密码。</li>
<li>注意防火墙</li>
</ul>

      <div class="tags">
          <a href="/blog/tags/Git/" rel="tag"><i class="ic i-tag"></i> Git</a>
      </div>
  </div>

   <footer>

    <div class="meta">
  <span class="item">
    <span class="icon">
      <i class="ic i-calendar-check"></i>
    </span>
    <span class="text">更新于</span>
    <time title="修改时间：2021-11-27 18:36:07" itemprop="dateModified" datetime="2021-11-27T18:36:07+08:00">2021-11-27</time>
  </span>
  <span id="2020/02/29/git-operation/" class="item leancloud_visitors" data-flag-title="Git&Github" title="阅读次数">
      <span class="icon">
        <i class="ic i-eye"></i>
      </span>
      <span class="text">阅读次数</span>
      <span class="leancloud-visitors-count"></span>
      <span class="text">次</span>
  </span>
</div>

      
<div class="reward">
  <button><i class="ic i-heartbeat"></i> 赞赏</button>
  <p>请我喝[茶]~(￣▽￣)~*</p>
  <div id="qr">
      
      <div>
        <img data-src="/blog/images/wechatpay.png" alt="Rain Bear 微信支付">
        <p>微信支付</p>
      </div>
      
      <div>
        <img data-src="/blog/images/alipay.png" alt="Rain Bear 支付宝">
        <p>支付宝</p>
      </div>
      
      <div>
        <img data-src="/blog/images/paypal.png" alt="Rain Bear 贝宝">
        <p>贝宝</p>
      </div>
  </div>
</div>

      

<div id="copyright">
<ul>
  <li class="author">
    <strong>Rain Bear： </strong>Rain Bear <i class="ic i-at"><em>@</em></i>Endless
  </li>
  <li class="link">
    <strong>本文链接：</strong>
    <a href="http://fairy77.gitee.io/2020/02/29/git-operation/" title="Git&amp;Github">http://fairy77.gitee.io/2020/02/29/git-operation/</a>
  </li>
  <li class="license">
    <strong>版权声明： </strong>本站所有文章除特别声明外，均采用 <span class="exturl" data-url="aHR0cHM6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL2xpY2Vuc2VzL2J5LW5jLXNhLzQuMC9kZWVkLnpo"><i class="ic i-creative-commons"><em>(CC)</em></i>BY-NC-SA</span> 许可协议。转载请注明出处！
  </li>
</ul>
</div>

  </footer>

</article>

  </div>
  

<div class="post-nav">
    <div class="item left">
      

  <a href="/blog/2020/02/29/MySQL%E5%AE%89%E8%A3%85/" itemprop="url" rel="prev" data-background-image="https:&#x2F;&#x2F;tva1.sinaimg.cn&#x2F;mw690&#x2F;6833939bly1gicliwyw55j20zk0m8hdt.jpg" title="MySQL安装">
  <span class="type">上一篇</span>
  <span class="category"><i class="ic i-flag"></i> </span>
  <h3>MySQL安装</h3>
  </a>

    </div>
    <div class="item right">
      

  <a href="/blog/2020/03/01/%E9%85%8D%E7%BD%AELinux%E8%99%9A%E6%8B%9F%E6%9C%BA/" itemprop="url" rel="next" data-background-image="https:&#x2F;&#x2F;tva1.sinaimg.cn&#x2F;mw690&#x2F;6833939bly1giclxfdlttj20zk0m8npd.jpg" title="配置Linux虚拟机">
  <span class="type">下一篇</span>
  <span class="category"><i class="ic i-flag"></i> </span>
  <h3>配置Linux虚拟机</h3>
  </a>

    </div>
</div>

  
  <div class="wrap" id="comments"></div>


        </div>
        <div id="sidebar">
          

<div class="inner">

  <div class="panels">
    <div class="inner">
      <div class="contents panel pjax" data-title="文章目录">
          <ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#1%E5%AE%89%E8%A3%85"><span class="toc-number">1.</span> <span class="toc-text"> 1. 安装</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#2%E7%BB%93%E6%9E%84"><span class="toc-number">2.</span> <span class="toc-text"> 2. 结构</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#3git%E5%92%8C%E4%BB%A3%E7%A0%81%E6%89%98%E7%AE%A1%E4%B8%AD%E5%BF%83"><span class="toc-number">3.</span> <span class="toc-text"> 3.Git 和代码托管中心</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#4%E6%9C%AC%E5%9C%B0%E5%BA%93%E5%92%8C%E8%BF%9C%E7%A8%8B%E5%BA%93"><span class="toc-number">4.</span> <span class="toc-text"> 4. 本地库和远程库</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#5git%E5%91%BD%E4%BB%A4%E8%A1%8C%E6%93%8D%E4%BD%9C"><span class="toc-number">5.</span> <span class="toc-text"> 5.Git 命令行操作</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#51-%E6%9C%AC%E5%9C%B0%E5%BA%93%E5%88%9D%E5%A7%8B%E5%8C%96"><span class="toc-number">5.1.</span> <span class="toc-text"> 5.1 本地库初始化</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#52-%E8%AE%BE%E7%BD%AE%E7%AD%BE%E5%90%8D"><span class="toc-number">5.2.</span> <span class="toc-text"> 5.2 设置签名</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#53-%E6%9F%A5%E7%9C%8B%E7%8A%B6%E6%80%81%E6%B7%BB%E5%8A%A0%E6%8F%90%E4%BA%A4"><span class="toc-number">5.3.</span> <span class="toc-text"> 5.3 查看状态，添加提交</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#54-%E6%9F%A5%E7%9C%8B%E5%8E%86%E5%8F%B2%E8%AE%B0%E5%BD%95"><span class="toc-number">5.4.</span> <span class="toc-text"> 5.4 查看历史记录</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#55-%E7%89%88%E6%9C%AC%E5%89%8D%E8%BF%9B%E5%9B%9E%E9%80%80"><span class="toc-number">5.5.</span> <span class="toc-text"> 5.5 版本前进回退</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#56-%E6%89%BE%E5%9B%9E%E5%88%A0%E9%99%A4%E6%96%87%E4%BB%B6"><span class="toc-number">5.6.</span> <span class="toc-text"> 5.6 找回删除文件</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#57-%E6%96%87%E4%BB%B6%E6%AF%94%E8%BE%83"><span class="toc-number">5.7.</span> <span class="toc-text"> 5.7 文件比较</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#58-%E5%88%86%E6%94%AF"><span class="toc-number">5.8.</span> <span class="toc-text"> 5.8 分支</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#6git%E7%9A%84%E5%9F%BA%E6%9C%AC%E5%8E%9F%E7%90%86"><span class="toc-number">6.</span> <span class="toc-text"> 6.Git 的基本原理</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#61%E5%93%88%E5%B8%8C"><span class="toc-number">6.1.</span> <span class="toc-text"> 6.1 哈希</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#62git%E4%BF%9D%E5%AD%98%E7%89%88%E6%9C%AC%E7%9A%84%E6%9C%BA%E5%88%B6"><span class="toc-number">6.2.</span> <span class="toc-text"> 6.2git 保存版本的机制</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#63git%E5%88%86%E6%94%AF%E7%AE%A1%E7%90%86%E6%9C%BA%E5%88%B6"><span class="toc-number">6.3.</span> <span class="toc-text"> 6.3git 分支管理机制</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#7github"><span class="toc-number">7.</span> <span class="toc-text"> 7.GitHub</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#71-%E5%88%9B%E5%BB%BA%E8%BF%9C%E7%A8%8B%E5%BA%93"><span class="toc-number">7.1.</span> <span class="toc-text"> 7.1 创建远程库</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#72-%E8%B5%B7%E5%88%AB%E5%90%8D"><span class="toc-number">7.2.</span> <span class="toc-text"> 7.2 起别名</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#73-%E6%8E%A8%E9%80%81%E6%93%8D%E4%BD%9C"><span class="toc-number">7.3.</span> <span class="toc-text"> 7.3 推送操作</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#74-%E5%85%8B%E9%9A%86"><span class="toc-number">7.4.</span> <span class="toc-text"> 7.4 克隆</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#75-%E6%B7%BB%E5%8A%A0%E9%A1%B9%E7%9B%AE%E6%88%90%E5%91%98"><span class="toc-number">7.5.</span> <span class="toc-text"> 7.5 添加项目成员</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#76-%E8%BF%9C%E7%A8%8B%E5%BA%93%E6%8B%89%E5%8F%96"><span class="toc-number">7.6.</span> <span class="toc-text"> 7.6 远程库拉取</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#77-%E8%A7%A3%E5%86%B3%E5%86%B2%E7%AA%81"><span class="toc-number">7.7.</span> <span class="toc-text"> 7.7 解决冲突</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#78-%E8%B7%A8%E5%9B%A2%E9%98%9F%E5%8D%8F%E4%BD%9C"><span class="toc-number">7.8.</span> <span class="toc-text"> 7.8 跨团队协作</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#79-ssh%E7%99%BB%E5%BD%95"><span class="toc-number">7.9.</span> <span class="toc-text"> 7.9  SSH 登录</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#8idea%E4%B8%8A%E4%BD%BF%E7%94%A8git"><span class="toc-number">8.</span> <span class="toc-text"> 8.Idea 上使用 git</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#81%E5%88%9B%E5%BB%BA%E6%9C%AC%E5%9C%B0%E5%BA%93"><span class="toc-number">8.1.</span> <span class="toc-text"> 8.1 创建本地库</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#82-%E5%8A%A0%E5%85%A5ignore%E6%8F%92%E4%BB%B6%E9%A1%B9%E7%9B%AE%E5%86%85%E9%83%A8%E5%8A%A0%E5%85%A5gitignore%E6%96%87%E4%BB%B6"><span class="toc-number">8.2.</span> <span class="toc-text"> 8.2 加入.ignore 插件，项目内部加入.gitignore 文件</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#83-%E6%B7%BB%E5%8A%A0%E8%BF%9C%E7%A8%8B%E5%BA%93"><span class="toc-number">8.3.</span> <span class="toc-text"> 8.3 添加远程库</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#9git%E5%B7%A5%E4%BD%9C%E6%B5%81"><span class="toc-number">9.</span> <span class="toc-text"> 9.Git 工作流</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#91%E6%A6%82%E5%BF%B5"><span class="toc-number">9.1.</span> <span class="toc-text"> 9.1 概念</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#92%E5%88%86%E7%B1%BB"><span class="toc-number">9.2.</span> <span class="toc-text"> 9.2 分类</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#93-gitflow%E5%B7%A5%E4%BD%9C%E6%B5%81%E8%AF%A6%E8%A7%A3"><span class="toc-number">9.3.</span> <span class="toc-text"> 9.3 gitflow 工作流详解</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#10gitlab"><span class="toc-number">10.</span> <span class="toc-text"> 10.GitLab</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#101%E4%B8%8B%E8%BD%BD%E5%AE%89%E8%A3%85"><span class="toc-number">10.1.</span> <span class="toc-text"> 10.1 下载安装</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#102gitlab%E6%9C%8D%E5%8A%A1%E6%93%8D%E4%BD%9C"><span class="toc-number">10.2.</span> <span class="toc-text"> 10.2GitLab 服务操作</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#103%E6%B5%8F%E8%A7%88%E5%99%A8%E8%AE%BF%E9%97%AE"><span class="toc-number">10.3.</span> <span class="toc-text"> 10.3 浏览器访问</span></a></li></ol></li></ol>
      </div>
      <div class="related panel pjax" data-title="系列文章">
      </div>
      <div class="overview panel" data-title="站点概览">
        <div class="author" itemprop="author" itemscope itemtype="http://schema.org/Person">
  <img class="image" itemprop="image" alt="Rain Bear"
      data-src="/blog/images/avatar.jpg">
  <p class="name" itemprop="name">Rain Bear</p>
  <div class="description" itemprop="description"></div>
</div>

<nav class="state">
    <div class="item posts">
      <a href="/blog/archives/">
        <span class="count">11</span>
        <span class="name">文章</span>
      </a>
    </div>
    <div class="item tags">
      <a href="/blog/tags/">
        <span class="count">8</span>
        <span class="name">标签</span>
      </a>
    </div>
</nav>

<div class="social">
      <span class="exturl item github" data-url="aHR0cHM6Ly9naXRodWIuY29tL2ZhaXJ5Nw==" title="https:&#x2F;&#x2F;github.com&#x2F;fairy7"><i class="ic i-github"></i></span>
      <span class="exturl item zhihu" data-url="aHR0cHM6Ly9naXRlZS5jb20vZmFpcnk3Nw==" title="https:&#x2F;&#x2F;gitee.com&#x2F;fairy77"><i class="ic i-gitee"></i></span>
      <span class="exturl item music" data-url="aHR0cHM6Ly9tdXNpYy4xNjMuY29tLyMvdXNlci9ob21lP2lkPTI1Njk2NTkxNg==" title="https:&#x2F;&#x2F;music.163.com&#x2F;#&#x2F;user&#x2F;home?id&#x3D;256965916"><i class="ic i-cloud-music"></i></span>
</div>

<ul class="menu">
  
    
  <li class="item">
    <a href="/blog/" rel="section"><i class="ic i-home"></i>首页</a>
  </li>

    
  <li class="item">
    <a href="/blog/about/" rel="section"><i class="ic i-user"></i>关于</a>
  </li>

        
  <li class="item dropdown">
      <a href="javascript:void(0);"><i class="ic i-feather"></i>文章</a>
    <ul class="submenu">

        
  <li class="item">
    <a href="/blog/archives/" rel="section"><i class="ic i-list-alt"></i>归档</a>
  </li>

        
  <li class="item">
    <a href="/blog/categories/" rel="section"><i class="ic i-th"></i>分类</a>
  </li>

        
  <li class="item">
    <a href="/blog/tags/" rel="section"><i class="ic i-tags"></i>标签</a>
  </li>

  </ul>
    
  <li class="item">
    <a href="/blog/friends/" rel="section"><i class="ic i-heart"></i>friends</a>
  </li>

    
  <li class="item">
    <a href="/blog/links/" rel="section"><i class="ic i-magic"></i>links</a>
  </li>


</ul>

      </div>
    </div>
  </div>

  <ul id="quick">
    <li class="prev pjax">
        <a href="/blog/2020/02/29/MySQL%E5%AE%89%E8%A3%85/" rel="prev" title="上一篇"><i class="ic i-chevron-left"></i></a>
    </li>
    <li class="up"><i class="ic i-arrow-up"></i></li>
    <li class="down"><i class="ic i-arrow-down"></i></li>
    <li class="next pjax">
        <a href="/blog/2020/03/01/%E9%85%8D%E7%BD%AELinux%E8%99%9A%E6%8B%9F%E6%9C%BA/" rel="next" title="下一篇"><i class="ic i-chevron-right"></i></a>
    </li>
    <li class="percent"></li>
  </ul>
</div>


        </div>
        <div class="dimmer"></div>
      </div>
    </main>
    <footer id="footer">
      <div class="inner">
        <div class="widgets">
          
<div class="rpost pjax">
  <h2>随机文章</h2>
  <ul>
      
  <li class="item">
    
<div class="breadcrumb">
</div>

    <span><a href="/blog/2020/03/01/linux-basic-operation/" title="Linux基本操作">Linux基本操作</a></span>
  </li>

      
  <li class="item">
    
<div class="breadcrumb">
</div>

    <span><a href="/blog/2020/03/08/SpringBoot/" title="SpringBoot学习笔记1">SpringBoot学习笔记1</a></span>
  </li>

      
  <li class="item">
    
<div class="breadcrumb">
</div>

    <span><a href="/blog/2021/11/19/tomcat/" title="tomcat">tomcat</a></span>
  </li>

      
  <li class="item">
    
<div class="breadcrumb">
</div>

    <span><a href="/blog/2020/02/29/git-operation/" title="Git&amp;Github">Git&Github</a></span>
  </li>

      
  <li class="item">
    
<div class="breadcrumb">
</div>

    <span><a href="/blog/2020/03/03/Nginx/" title="Nginx学习笔记">Nginx学习笔记</a></span>
  </li>

      
  <li class="item">
    
<div class="breadcrumb">
</div>

    <span><a href="/blog/2020/02/28/%E8%8E%B7%E5%8F%96%E7%94%A8%E9%94%AE%E7%9B%98%E8%BE%93%E5%85%A5%E5%B8%B8%E7%94%A8%E7%9A%84%E4%B8%A4%E7%A7%8D%E6%96%B9%E6%B3%95/" title="获取用键盘输入常用的两种方法">获取用键盘输入常用的两种方法</a></span>
  </li>

      
  <li class="item">
    
<div class="breadcrumb">
</div>

    <span><a href="/blog/2020/02/29/MySQL%E5%AE%89%E8%A3%85/" title="MySQL安装">MySQL安装</a></span>
  </li>

      
  <li class="item">
    
<div class="breadcrumb">
</div>

    <span><a href="/blog/2020/03/19/%E6%95%B0%E7%BB%84%E7%9A%84%E4%BD%BF%E7%94%A8/" title="数组的使用">数组的使用</a></span>
  </li>

      
  <li class="item">
    
<div class="breadcrumb">
</div>

    <span><a href="/blog/2020/03/01/%E9%85%8D%E7%BD%AELinux%E8%99%9A%E6%8B%9F%E6%9C%BA/" title="配置Linux虚拟机">配置Linux虚拟机</a></span>
  </li>

      
  <li class="item">
    
<div class="breadcrumb">
</div>

    <span><a href="/blog/2020/02/28/String%E5%92%8CStringBuffer%E3%80%81StringBuilder%E7%9A%84%E5%8C%BA%E5%88%AB%EF%BC%9F/" title="String和StringBuffer、StringBuilder的区别？">String和StringBuffer、StringBuilder的区别？</a></span>
  </li>

  </ul>
</div>
<div>
  <h2>最新评论</h2>
  <ul class="leancloud-recent-comment"></ul>
</div>

        </div>
        <div class="status">
  <div class="copyright">
    
    &copy; 2019 – 
    <span itemprop="copyrightYear">2021</span>
    <span class="with-love">
      <i class="ic i-sakura rotate"></i>
    </span>
    <span class="author" itemprop="copyrightHolder">Rain Bear @ 夏季大三角</span>
  </div>
  <div class="count">
    <span class="post-meta-item-icon">
      <i class="ic i-chart-area"></i>
    </span>
    <span title="站点总字数">106k 字</span>

    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="ic i-coffee"></i>
    </span>
    <span title="站点阅读时长">1:36</span>
  </div>
  <div class="powered-by">
    基于 <span class="exturl" data-url="aHR0cHM6Ly9oZXhvLmlv">Hexo</span> & Theme.<span class="exturl" data-url="aHR0cHM6Ly9naXRodWIuY29tL2FtZWhpbWUvaGV4by10aGVtZS1zaG9rYQ==">Shoka</span>
  </div>
</div>

      </div>
    </footer>
  </div>
<script data-config type="text/javascript">
  var LOCAL = {
    path: '2020/02/29/git-operation/',
    favicon: {
      show: "（●´3｀●）やれやれだぜ",
      hide: "(´Д｀)大変だ！"
    },
    search : {
      placeholder: "文章搜索",
      empty: "关于 「 ${query} 」，什么也没搜到",
      stats: "${time} ms 内找到 ${hits} 条结果"
    },
    valine: true,fancybox: true,
    copyright: '复制成功，转载请遵守 <i class="ic i-creative-commons"></i>BY-NC-SA 协议。',
    ignores : [
      function(uri) {
        return uri.includes('#');
      },
      function(uri) {
        return new RegExp(LOCAL.path+"$").test(uri);
      }
    ]
  };
</script>

<script src="https://cdn.polyfill.io/v2/polyfill.js"></script>

<script src="//cdn.jsdelivr.net/combine/npm/pace-js@1.0.2/pace.min.js,npm/pjax@0.2.8/pjax.min.js,npm/whatwg-fetch@3.4.0/dist/fetch.umd.min.js,npm/animejs@3.2.0/lib/anime.min.js,npm/algoliasearch@4/dist/algoliasearch-lite.umd.js,npm/instantsearch.js@4/dist/instantsearch.production.min.js,npm/lozad@1/dist/lozad.min.js,npm/quicklink@2/dist/quicklink.umd.js"></script>

<script src="/blog/js/app.js?v=0.2.5"></script>




</body>
</html>
